home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 1
/
Nebula One.iso
/
Financial
/
Stopwatch2.3
/
Source
/
StopWatch.h
< prev
next >
Wrap
Text File
|
1995-06-12
|
559b
|
25 lines
/*
* Stopwatch/time support for Stopwatch app.
* Author: Rich Plevin
*
* For legal stuff see the file COPYRIGHT
*/
#import <sys/time.h>
#import <appkit/appkit.h>
@interface StopWatch:Object
{
BOOL running;
struct timeval start;
struct timeval finish;
}
- startWatch; /* start the watch */
- stopWatch; /* stop the watch */
- (BOOL) running; /* are we running? */
- (const char *) elapsedTime; /* return a string showing elapsed time in mins */
- (int) elapsedMinutes;
- (const char *)startTimeString;
- (const char *)startDateString;
@end